package cn.com.scan.config;

/**
 * 通用常量类
 *
 * @Version 0.1
 * @Author zhuzhenbo
 * @Date 2015/6/22
 */
public class Constants {

    // 条码广播
    public static final String BAR_READ_ACTION = "SYSTEM_BAR_READ";

    // 登陆角色标示(医院)
    public static final String LOGIN_ROLE_HOSPITAL = "1";

    // 登陆角色标示(供应商)
    public static final String LOGIN_ROLE_SUPPLIER = "2";

    //条码状态 (二进制)  0000 原始  ***1 成功 **10 取消 *1*0 确认 1**0 修改  1**** 上传失败
    // 原始
    public static final int STATE_ORIGINAL = 0;

    // 完成
    public static final int STATE_COMPLETED = 1;

    // 拒绝(超过有效期)
    public static final int STATE_REJECTED = 2;

    // 确认
    public static final int STATE_CONFIRM = 4;

    // 修改
    public static final int STATE_FIXED = 8;

    // 上传未成功
    public static final int STATE_FAILED = 16;

//    // 存放文件路径
//    public static final String FILE_PATH = "/baiyee/";

    public static final int LOGIN_LIMIT_TIME = 10;

    //扫码情景模式状态
    //正常情景
    public static final int NORMAL_SCAN = 1;

    //修改情景
    public static final int FIX_SCAN = 2;

    // 换行符
    public static final String NEW_LINE = "\r\n";

    private Constants() {
    }
}
